@import 'tailwindcss';

/* 全局样式 */
/* 覆盖Element Plus组件样式，确保Tailwind宽度类生效 */
/* 使用更高优先级的选择器 */
.el-select[class*="w-"],
.el-input[class*="w-"],
.el-date-picker[class*="w-"] {
  width: var(--tw-w) !important;
  min-width: var(--tw-w) !important;
}

/* 强制覆盖Element Plus的默认宽度 */
.el-select,
.el-input {
  width: 100% !important;
}

/* 为特定宽度类提供具体值 */
.w-32 { --tw-w: 8rem !important; }
.w-40 { --tw-w: 10rem !important; }
.w-48 { --tw-w: 12rem !important; }
.w-56 { --tw-w: 14rem !important; }
.w-64 { --tw-w: 16rem !important; }
.w-72 { --tw-w: 18rem !important; }
.w-80 { --tw-w: 20rem !important; }
.w-96 { --tw-w: 24rem !important; }

/* 确保表单元素内的组件也响应 */
.el-form-item .el-select,
.el-form-item .el-input {
  width: 100%;
}

/* 修复分页组件下拉选框样式问题 */
.el-pagination .el-select .el-input {
  min-width: 100px !important;
}

.el-pagination .el-select-dropdown {
  min-width: 100px !important;
}

.el-pagination .el-select-dropdown__item {
  padding: 0 20px;
  height: 34px;
  line-height: 34px;
}

/* 确保分页组件下拉选框内容完整显示 */
.el-pagination__sizes .el-select {
  min-width: 100px;
}

.el-pagination__sizes .el-input {
  min-width: 100px !important;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f8fafc;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 卡片阴影效果 */
.card-shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card-shadow-lg {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 过渡动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}